package com.dfrobot.demo.domain.entity;

import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "df_customer_level")
public class DfCustomerLevel {
    @Id
    @Column(name = "customer_member_id")
    private Integer customerMemberId;

    @Column(name = "customer_id")
    private Integer customerId;

    /**
     * VIP0,VIP1
     */
    private String level;

    /**
     * 当前积分
     */
    private Integer points;

    /**
     * 是否需降级。1 无需降级
     */
    private Integer status;

    /**
     * 更新时间
     */
    @Column(name = "date_update")
    private Date dateUpdate;

    /**
     * 级别有效开始时间
     */
    @Column(name = "date_start")
    private Date dateStart;

    /**
     * 级别有效结束时间
     */
    @Column(name = "date_end")
    private Date dateEnd;

    /**
     * 是否需要降级通知。1 无需通知降级
     */
    @Column(name = "notice_status")
    private Integer noticeStatus;

    /**
     * 降级提前一个月通知
     */
    @Column(name = "notice_date")
    private Date noticeDate;

    /**
     * 降级时间
     */
    @Column(name = "reduce_date")
    private Date reduceDate;
}